package zac.factory;

import org.springframework.beans.factory.FactoryBean;

import java.util.Calendar;

/**
 * @Title
 * @Author Peihan.Zhang
 * @Email zhangpeihan@sjgtw.com
 * @Date 2021/10/18 13:07
 * @Versions 1.0
 */
public class SpringFactory1  implements FactoryBean<Calendar> {
    @Override
    public Calendar getObject() throws Exception {
        return Calendar.getInstance();
    }

    @Override
    public Class<?> getObjectType() {
        return Calendar.class;
    }
}
